
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="new_top">
  <tr>
    <td>&nbsp;</td>

<?php

$self = isset($self) ? $self : basename($_SERVER['PHP_SELF']);

$mode_arr = array(
'index_complete.php' => '怀旧版',
'index_new.php' => '爽洁版',
'index_menhu.php' => '流行版',
'index_hiddenmenu.php' => '快捷版',
'index_search.php' => '简易版',
);

if (strpos($self, 'index') === 0) {
  $home_yes = 1;
  $text_i = '<td class="new_top_1" id="new_top_1"><table id="weather_datetime" border="0" cellspacing="0" cellpadding="0"><tr><td onmouseover="ct=window.setInterval(function(){showWD($(\'weather\'), \'weather.php\', 692, 674);}, 1000);" onmouseout="window.clearInterval(ct);" id="weather">
    <span class="weather">
  <span id="city_where">
    <a href="weather.php?area=china" id="weather_where" title="切换城市"><img src="readonly/images/po.png" /></a>
    <a href="weather.php?type=2&city=%B1%B1%BE%A9" id="weather_city">北京</a>
  </span>
  <a href="weather.php?type=2&city=%B1%B1%BE%A9" id="weather_show">
 <span id="w_kq">空气<b class="w_kq_you">优</b></span><span id="w_today" title="白天"><span class="w_img"><img src="readonly/weather/qing_0.png" /></span><span class="w_qingkuang">晴</span><span class="w_wendu w_wendu_ls">8℃</span></span> ～<span id="w_moday" title="夜间"><span class="w_img"><img src="readonly/weather/yin_1.png" /></span><span class="w_qingkuang">阴</span><span class="w_wendu w_wendu_lx">-4℃</span></span><!--span class="w_xiangqing" title="未来详情">︾</span--></a>
</span>
    </td><td><span class="w_dt_line"></span></td><td id="date_time" onmouseover="ctt=window.setInterval(function(){showWD($(\'date_time\'), \'http://www.taijiyu.net/apps/bdwannianli.aspx\', 540, 452);}, 1000);" onmouseout="window.clearInterval(ctt);"><a href="wannianli.html">日历载入中…</a></td></tr></table>
<script>
var wdifrclose;
function showWD(o, src, w, h) {
  clearTimeout(wdifrclose);
$("new_top_1").style.position=\'relative\';
$("new_top_1").style.zIndex=\'78\';
  var img = $("imgfr");
  var iFr = $("wdFr");
  var s = iFr.src.toString().replace(/[^\/]*[\/]+/g, "")+"abc";
  var xh = parseInt($("new_top_1").offsetHeight);
  xh = xh - 1 <= 34 ? 34 : xh - 1;
  iFr.style.display = "block";
  iFr.style.width = w+"px";
  iFr.style.height = h+"px";
  iFr.style.top = xh+"px";
  img.style.display = "block";
  img.style.top = (xh-11)+"px";
  img.style.left = (parseInt(o.offsetLeft) + parseInt(o.offsetWidth)/2)+"px";
  if (s != src.toString().replace(/[^\/]*[\/]+/g, "")+"abc") {
    iFr.src = src;
  }
  iFr.onmouseout = function () {
    wdifrclose = setTimeout(function(){
      iFr.style.display = "none";
      img.style.display = "none";
$("new_top_1").style.position=\'\';
$("new_top_1").style.zIndex=\'auto\';
    }, 500);
  }
}
</script><img id="imgfr" src="readonly/images/ifr.gif" />
<iframe id="wdFr" name="wdFr" frameborder="0" scrolling="no"></iframe></td>
    <td class="mode mode_is"><a onmouseover="this.innerHTML=\''.(isset($mode_arr[$self])?$mode_arr[$self]:'√').'\';" onmouseout="this.innerHTML=\'&nbsp;\';" title="当前模式">&nbsp;</a></td>
    <td class="mode"><a href="javascript:void(0);" onclick="return false;" title="切换到其它模式"><div class="mode_other">';

  $mode_arr_ = @glob('index_*.php');
  if (count($mode_arr_) > 0) {
    foreach ($mode_arr_ as $k => $v) {
      if ($self == $v) continue;
      //if (array_key_exists($v, $mode_arr)) {
      if (isset($mode_arr[$v])) {
        $text_i .= '<div onclick="location.href=\''.(filesize($v) == filesize('index.php') ? 'index.php' : $v).'\';">'.$mode_arr[$v].'</div>';
      }
    }
  }
  $text_i .= '</div></a></td>';
} elseif (($self == 'class.php' || $self == 'class_current.php' || $self == 'detail.php' || $self == 'detail_current.php') && isset($_GET['column_id'])) {

  $text_i = '<td class="new_top_class">';
  foreach ($web['area'][$_GET['column_id']] as $class_id => $class) {
    if ($class_id == 'name') continue;
    $text_i .= '<a href="'.get_class_html($_GET['column_id'], $class_id).'">'.$class[0].'</a> · ';
  }
  $text_i = preg_replace('/\s*·\s*$/', '', $text_i);
  //$text_i .= '<a href="column.php?column_id='.$_GET['column_id'].'" title="本频道更多栏目">…</a>';
  $text_i .= '</td>';
} elseif ($self == 'column.php' && isset($_GET['column_id'])) {
  $text_i = '<td class="new_top_class">';
  foreach ($web['area'] as $column_id => $column) {
    $text_i .= '<a href="'.get_column_html($column_id).'">'.$column['name'][0].'</a> · ';
  }
  $text_i = preg_replace('/\s*·\s*$/', '', $text_i);
  //$text_i .= '<a href="column.php" title="更多频道">…</a>';
  $text_i .= '</td>';
} else {
  $text_i = '<td class="new_top_class">&nbsp;</td>';

}
echo $text_i;
unset($text_i, $column_id, $column, $class_id, $class, $k, $v);
?>
    <td class="new_top_4"><span id="mylog"><?php
$lv0 = $lv1 = '';
if (is_array($web['login_key']) && count($web['login_key']) > 0) {
  $lv1 .= '&&(';
  foreach ($web['login_key'] as $lv => $lk) {
    if ($lk == 1)
      $lv0 .= '<a href="javascript:void(0);" onclick="toQzoneLogin(\\\''.$lv.'\\\');return false;" title="用'.@file_get_contents('login_key/'.$lv.'/title.txt').'帐号登录"><img src="readonly/images/'.$lv.'.png" width="16" height="16" /></a> ';
    $lv1 .= 'us[4]==\''.$lv.'\'||';
    unset($lv, $lk);
  }
  $lv1 = rtrim($lv1, '|').')';
}
?><script>
  us = getCookie('usercookie').toString().split('|');
  if (us && us.length >= 5) {
    if (us.length >=  7) {
      us[4] = '162100';
    }
  	document.write('' + ((us[4] != 'undefined' && us[4] <?php echo $lv1; ?> ) ? '<a href="member_current.php" onclick="addSubmitSafe();$(\'addCFrame\').style.display=\'block\';" target="addCFrame"><b><img src="readonly/images/' + us[4] + '.png" width="16" height="16" /> ' + us[0] + '</b> 管理</a>' : '<a href="member_current.php" onclick="addSubmitSafe();$(\'addCFrame\').style.display=\'block\';" target="addCFrame" title="进入用户中心\n进行个性化管理"><b>' + us[0] + '</b> 管理</a> · <a href="member_current.php?get=style" onclick="addSubmitSafe();$(\'addCFrame\').style.display=\'block\';" target="addCFrame">换肤</a> · <a href="member_current.php?get=memory_website" onclick="addSubmitSafe();$(\'addCFrame\').style.display=\'block\';" target="addCFrame">已浏览</a>') + ' · <a href="member.php?post=login&act=logout" onclick="addSubmitSafe();$(\'addCFrame\').style.display=\'block\';" target="addCFrame">退出</a>');
    var myCollection = '<ul id="collection"><li class="class_name"><a>收藏</a></li><li style="color:#DDDDDD">我的收藏载入中…</li></ul>';
  } else {
  	document.write('<b><?php echo $lv0; ?><a href="login_current.php?location='+location.href+'" onclick="addSubmitSafe();$(\'addCFrame\').style.display=\'block\';" target="addCFrame" title="进入用户控制台\n进行个性化管理">登陆</a></b> · <a href="member_current.php?get=style" onclick="addSubmitSafe();$(\'addCFrame\').style.display=\'block\';" target="addCFrame">换肤</a>');
    var myCollection = '';
  }
</script></span><span id="new_sc"><?php
echo isset($home_yes) ? '<a href="sethomepage.php" onclick="try{this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\''.trim($web['sitehttp'], '/').$_SERVER['REQUEST_URI'].'\');return(false);}catch(e){}" title="设为首页">设为首页</a>' : '<a href="#" onclick="addFavor();return false;" title="收藏本页">收藏本页</a>';
?></span>
<?php
unset($lv0, $lv1);
?>
    </td>
    <td>&nbsp;</td>
  </tr>
</table>

<?php
unset($lv0, $lv1);
?>

<div id="head_out">
  <table width="100%" border="0" cellspacing="0" cellpadding="0" id="head">
    <tr>
    <td id="logo"><a href="./"><img src="writable/images/logo.png" alt="<?php echo $web['sitename2']; ?> - 欢迎您" /></a></td>
    <td id="search">
    <script> var defaultBayId = '<?php echo $web['search_bar']; ?>'; </script>
    <script type="text/javascript" language="javaScript" src="writable/js/search_hot.js"></script>
    <script type="text/javascript" language="javaScript" src="writable/js/search.js"></script>
    <script> addsearchBar(search_default_type, search_default_id); </script>
    </td>
    </tr>
  </table>
</div>